<?php
/*
 * content : Model 基类
 * Author  : Songyicong 
 * time    : 2018-04-19 10:41:29 
 * email   : m13726262373@163.com 
 */
namespace app\api\model;

use think\Model;

class BaseModel extends Model{

    /** 图片前缀 */
    protected function prefixImageUrl($value,$data){
        $finalUrl = $value;
        if(empty($value)){
            return $finalUrl;
        }
        $finalUrl = \think\Env::get('api_url').$value;
        return $finalUrl;
    }

}